package com.travel.api.beans.order

import org.springframework.data.annotation.Id
import java.math.BigDecimal
import java.math.BigInteger

import java.util.Date
import javax.persistence.Table

/**
 * @ClassName Order
 * @Author liguangyao
 * @Date 29/8/18 下午3:17
 * @Version 1.0
 */
@Table(name = "`order`")
class `Order` {

    @Id
    internal var orderId: String? = null

    internal var orderOn: String? = null // 订单单号(供客户查询)

    internal var orderStatus: String? = null // 订单状态 0.未付款1.已付款

    internal var orderAmount: BigDecimal? = null // 订单金额

    internal var orderType: String? = null // 订单类型id

    internal var userId: String? = null // 用户id

    internal var payChannel: String? = null // 支付渠道1.支付宝2.微信3.其他

    internal var outTradeNo: String? = null // 第三方支付流水号

    internal var createDate: Date? = null // 订单创建时间

    internal var updateDate: Date? = null // 订单更新时间

    internal var delFlag: String? = null // 订单状态 0未删除,1已删除

    internal var orderNote: String? = null // 订单备注信息

    internal var orderSettlementStatus: String? = null // 订单结算状态 0一次性付清后发货1货到付款2分期付款

    internal var orderSettlementTime: Date? = null //订单结算时间

    internal var lookFlag: String? = null // 是否查阅0没有1有

    internal var orderFinish: String? = null // 订单是否完成 0 未完成 1完成
}
